﻿using System;
using System.Windows.Forms;
using Campus.Main.Basic;

namespace Campus.Main.WriteUser
{
    public partial class FormForWriteUser:BasicUserForm
    {
        public FormForWriteUser()
        {
            InitializeComponent();
            ToolStripMenuItem.DropDownItems.Remove(ortalamaVePuanlariYenilemekToolStripMenuItem);
        } 
        public FormForWriteUser(int a):base()
        {
            InitializeComponent();
            btn_setting.Click += btn_setting_Click;
            btn_onkayit.Click += button1_Click;
            ToolStripMenuItem.DropDownItems.Remove(ortalamaVePuanlariYenilemekToolStripMenuItem);
        }

        protected override void btn_setting_Click(object sender, EventArgs e)
        {
            var f = new SettingForWriteUser();
            f.ShowDialog();
        }

        private void FormForWriteUser_Load(object sender, EventArgs e)
        {
            
        }
        protected override void ortalamaVePuanlariYenilemekToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Sizin hakkiniz yok");
        }
        protected override void button1_Click(object sender, EventArgs e)
        {
            var k = new KayitForWriteUser();
            if (radioButton1.Checked)
            {
                k.pol = 1;
                k.cmb_sex.SelectedValue = 1;
            }
            if (radioButton2.Checked)
            {
                k.pol = 2;
                k.cmb_sex.SelectedValue = 2;
            }
            k.ShowDialog();
        }
        protected override void btn_search_Click(object sender, EventArgs e)
        {
            SearchForm f=new SearchForWriteUser();
            f.ShowDialog();
        }
        protected override void btn_allListO_Click(object sender, EventArgs e)
        {
            BolumInsertForm f = new AllListForWriteUser();
            f.ShowDialog();
        }


    }
}
